package com.jin.stu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jin.stu.domain.Leave;
import com.jin.stu.vo.LeaveVo;
import com.jin.sys.common.DataGridView;
import com.jin.sys.common.ResultObj;

public interface LeaveService extends IService<Leave> {
    public DataGridView loadAllLeave(LeaveVo leaveVo);

    public DataGridView loadAllLeaveByStatus(LeaveVo leaveVo, Integer id);

    public DataGridView loadAllLeaveApprovalCheck(LeaveVo leaveVo);

    public ResultObj addLeave(LeaveVo leaveVo);

    public ResultObj updateLeave(LeaveVo leaveVo);

    public ResultObj deleteLeave(Integer id);

    public ResultObj batchDeleteLeave(LeaveVo leaveVo);

    public ResultObj agreeLeave(Integer id);

    public ResultObj backoutLeave(Integer id);

}
